package com.duartepeixinho.P3D.Objects 
{
	/**
	 * P3D
	 * @version 0.1
	 * @author Duarte Peixinho
	 */
	public class DisplayObject3D extends Object3D
	{
		
		public function DisplayObject3D() 
		{
			super(this);
		}
		
		/**
		 * Get new DisplayObject3D
		 */
		public static function get ZERO():DisplayObject3D {
			return new DisplayObject3D();
		}
		
		/**
		 * AddChild
		 * @param	do3d	DisplayObject3D
		 */
		override public function addChild(do3d:DisplayObject3D):void {
			// adds do3d to object list
			_do3d.push(do3d);
			// adds to scene
			_scene.addChild(do3d);
			// register do3d scene
			do3d.scene = _scene;
			// register child parent
			do3d.parent = this;
		}
		
	}

}